#include "RobotHitCommand.h"

RobotHitCommand::RobotHitCommand(Robot* receiver): robot(receiver)
{
}

RobotHitCommand::RobotHitCommand(const RobotHitCommand& rhs): GameCommand(rhs), robot(rhs.robot)
{
}

RobotHitCommand::~RobotHitCommand()
{
}

void RobotHitCommand::Execute()
{
	if (robot)
	{
		robot->Hit();
	}
}

GameCommand* RobotHitCommand::Clone() const
{
	return new RobotHitCommand(*this);
}
